#ifndef _DC_CRITICAL_LOCK_H_
#define _DC_CRITICAL_LOCK_H_
#ifdef LINUXCODE
#include <pthread.h>
#else
#include <windows.h>
#endif
#include "CommonDef.h"
class DcCritical
{
public:
	DcCritical();
	~DcCritical();

	void Lock();
	void Unlock();

private:
#ifdef LINUXCODE
	pthread_mutex_t m_handle;
#else
	CRITICAL_SECTION *m_phandle;
#endif
};

#endif
